package com.neusoft.neuiotms.dcvm.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "dcvm_config")
public class Config extends AbstractModel {
    private static final long serialVersionUID = 1L;

    /** 名称 */
    @NotNull(message = "名称不能为空")
    @Column(length = 255, nullable = false)
    private String name;

    /** 编码 */
    @NotNull(message = "编码不能为空")
    @Column(length = 255, nullable = false, unique = true)
    private String code;

    /** 数据 */
    @NotNull(message = "数据不能为空")
    @Lob
    @Column(nullable = false)
    private String data;

}
